package android.com.app;

import android.location.Location;
import android.location.LocationListener;
import android.os.Bundle;
import android.util.Log;

public class LocationHandler implements LocationListener{
	// LocationListener Interface	

	private Location location; 	

	public void onLocationChanged(Location arg0) {
		String lat = String.valueOf(arg0.getLatitude());
		String lon = String.valueOf(arg0.getLongitude());
		Log.i("GPS", "location changed: lat="+lat+", lon="+lon);
	}
	public void onProviderDisabled(String arg0) {
		Log.i("GPS", "provider disabled " + arg0);
	}
	public void onProviderEnabled(String arg0) {
		Log.i("GPS", "provider enabled " + arg0);
	}
	public void onStatusChanged(String arg0, int arg1, Bundle arg2) {
		Log.i("GPS", "status changed to " + arg0 + " [" + arg1 + "]");
	}
}